package com.hiyu.dome3;

public class GirlFriendTest {
    public static void main(String[] args) {
        GirlFriend[] arr = new GirlFriend[4];
        GirlFriend gf1 =  new GirlFriend("小诗诗",18,"妹子","吃零食");
        GirlFriend gf2 =  new GirlFriend("小丹丹",19,"妹子","看书");
        GirlFriend gf3 =  new GirlFriend("小慧慧",20,"妹子","睡觉");
        GirlFriend gf4 =  new GirlFriend("小丽丽",21,"妹子","吃");
        arr[0] = gf1;
        arr[1] = gf2;
        arr[2] = gf3;
        arr[3] = gf4;
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            GirlFriend gf = arr[i];
            sum+=gf.getAge();
        }
        int avg = sum/arr.length;
        for (int i = 0; i < arr.length; i++) {
            if(gf.getAge()<avg){

            }
        }

    }
}
